import App from './App'
import ElementPlus from 'element-plus';
import 'element-plus/theme-chalk/index.css';
import { createPinia } from 'pinia'

// 使用 Pinia
const pinia = createPinia()

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'

Vue.use(ElementPlus)

const app = new Vue({
  ...App,
  pinia
})

app.$mount()
// #endif

// #ifdef VUE3
import { createApp } from 'vue'

const app = createApp(App)
app.use(ElementPlus)
app.use(pinia)
app.mount('#app')
// #endif
